package com.cimpm.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hby.common.annotation.entity.Primary;
import com.hby.common.annotation.entity.Secondary;
import com.hby.common.annotation.entity.VerifyMultiRepetitionField;

import java.util.Date;

@TableName("project_projectproject_detail_mapper")
public class ProjectprojectDetailMapper {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Primary
    @VerifyMultiRepetitionField
    private Integer projectId;

    @Secondary
    @VerifyMultiRepetitionField
    private Integer projectDetailId;

    @TableLogic
    private Date isDeleted;

    @Version
    private Integer version;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public Integer getProjectId() { return projectId; }

    public void setProjectId(Integer projectId) { this.projectId = projectId; }

    public Integer getProjectDetailId() { return projectDetailId; }

    public void setProjectDetailId(Integer projectDetailId) { this.projectDetailId = projectDetailId; }

    public Date getIsDeleted() { return isDeleted; }

    public void setIsDeleted(Date isDeleted) { this.isDeleted = isDeleted; }

    public Integer getVersion() { return version; }

    public void setVersion(Integer version) { this.version = version; }

    @Override
    public String toString() {
    return "projectprojectDetailMapper{" +
            "id=" + id +
            ", projectId=" + projectId +
            ", projectDetailId=" + projectDetailId +
            ", isDeleted=" + isDeleted +
            ", version=" + version +
            '}';
    }

}
